﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="FinishMaintaince.aspx.cs" Inherits="WXYW.FinishMaintaince" %>

<%@ Register Namespace="WXYW.Controls" TagPrefix="WXYWControl" Assembly="WXYW.Common" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="Ajax" %>
<asp:Content ID="content2" ContentPlaceHolderID="TitlePlaceHolder" runat="server">
    RMA 服务与申请--完成维修--&gt;待发货
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ButtonPlaceHolder" runat="server">
    关键字<asp:TextBox ID="keyWordTextBox" runat="server" Height="16px" onkeypress="enterTxtBox('searchLinkButton')"></asp:TextBox><asp:LinkButton
        ID="searchLinkButton" runat="server" OnClick="searchLinkButton_Click">查询</asp:LinkButton><asp:LinkButton
            ID="resetLinkButton" runat="server" OnClick="resetLinkButton_Click">清除</asp:LinkButton>
    <img src="image/operateicon/print.gif" alt="" />
    <asp:HyperLink ID="PrintLnk" runat="server" onclick="preview()">打印</asp:HyperLink>
</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="RightContentPlaceHolder" runat="server">
    <WXYWControl:CustomGridView ID="applicationGridView" CssClass="tableList" BorderColor="#888888"
        BorderWidth="1px" runat="server" AutoGenerateColumns="False" AllowPaging="True"
        PageSize="20" OnPageIndexChanging="applicationGridView_PageIndexChanging" Width="100%"
        OnRowDataBound="applicationGridView_RowDataBound" OnMustAddARow="GridView_MustAddARow"
        OnDataBound="applicationGridView_DataBound">
        <Columns>
            <asp:TemplateField HeaderImageUrl="~/image/operateicon/button_Select.gif">
                <EditItemTemplate>
                    <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                </EditItemTemplate>
                <ItemTemplate>
                    <asp:Label ID="IDLbl" runat="server"></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="RMA #">
                <ItemTemplate>
                    <asp:HyperLink ID="HyperLink1" runat="server"><%#Eval("ApplicationCode")%></asp:HyperLink>
                </ItemTemplate>
                <HeaderStyle Wrap="False" />
                <ItemStyle Wrap="False" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="客户名称">
                <ItemTemplate>
                    <asp:Label ID="CustomerNameTextBox" runat="server" Text='<%# Bind("User.FullName") %>'></asp:Label>
                </ItemTemplate>
                <HeaderStyle Wrap="False" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="联系人">
                <ItemTemplate>
                    <asp:Label ID="ContactTextBox" runat="server" Text='<%# Bind("User.ContactPerson") %>'></asp:Label>
                </ItemTemplate>
                <HeaderStyle Wrap="False" />
                <ItemStyle Wrap="False" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="联系电话">
                <ItemTemplate>
                    <asp:Label ID="PhoneTextBox" runat="server" Text='<%# Bind("User.UserPhone") %>'></asp:Label>
                </ItemTemplate>
                <HeaderStyle Wrap="False" />
                <ItemStyle Wrap="False" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="申请日期">
                <ItemTemplate>
                    <%#Convert.ToDateTime(Eval("ApplicationDateTime")).ToString("yyyy-MM-dd HH:mm")%>
                </ItemTemplate>
                <HeaderStyle Wrap="False" />
                <ItemStyle Wrap="False" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="维修完毕日期">
                <ItemTemplate>
                    <%#Convert.ToDateTime(Eval("CompleteDateTime")).ToString("yyyy-MM-dd HH:mm")%>
                </ItemTemplate>
                <HeaderStyle Wrap="False" />
                <ItemStyle Wrap="False" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="状态">
                <ItemTemplate>
                    <asp:Label ID="StatusTextBox" runat="server" Text="维修完毕待发货"></asp:Label>
                </ItemTemplate>
                <HeaderStyle Wrap="False" />
                <ItemStyle Wrap="False" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="发货方式">
                <ItemTemplate>
                    <asp:LinkButton ID="getBySelfLnk" runat="server" Text="自取" OnClick="getBySelfLnk_Click"
                        CommandArgument='<%#Eval("ApplicationID") %>'></asp:LinkButton>
                    <asp:LinkButton ID="sendByExpressLnk" runat="server" Text="快递送货上门" OnClick="sendByExpressLnk_Click"
                        CommandArgument='<%#Eval("ApplicationID") %>'></asp:LinkButton>
                </ItemTemplate>
                <HeaderStyle Wrap="False" />
                <ItemStyle Wrap="False" />
            </asp:TemplateField>
        </Columns>
        <PagerTemplate>
            本类记录<span style="color: Red"><%= RecordsNumber%></span>条, <span style="color: Red">20</span>条/页
            当前 <span style="color: Red">
                <%= applicationGridView.PageIndex + 1%>/<%= applicationGridView.PageCount%></span>页
            <asp:LinkButton CommandName="Page" CommandArgument="First" ID="LinkButton1" runat="server"
                Style="color: blue">首页</asp:LinkButton><asp:LinkButton CommandName="Page" CommandArgument="Prev"
                    ID="LinkButton2" runat="server" Style="color: blue">|上一页</asp:LinkButton>
            <asp:LinkButton CommandName="Page" CommandArgument="Next" ID="LinkButton3" runat="server"
                Style="color: blue">下一页</asp:LinkButton><asp:LinkButton CommandName="Page" CommandArgument="Last"
                    ID="LinkButton4" runat="server" Style="color: blue">|尾页</asp:LinkButton>
            转到<asp:DropDownList ID="pageDDL" runat="server" AutoPostBack="True" OnSelectedIndexChanged="pageDDL_SelectedIndexChanged">
            </asp:DropDownList>
        </PagerTemplate>
        <HeaderStyle ForeColor="White" Font-Bold="True" BackColor="#A55129"></HeaderStyle>
    </WXYWControl:CustomGridView>
    <asp:Label ID="MsgLbl" runat="server" ForeColor="Red" Width="100%"></asp:Label>
    <asp:HiddenField ID="SelectedApplication" runat="server" />
    <Ajax:ModalPopupExtender ID="EmailNoticeModalPopupExtender" TargetControlID="SelectedApplication"
        BackgroundCssClass="modalBackground" runat="server" PopupControlID="EmailNoticePanel"
        CancelControlID="LinkButton2">
    </Ajax:ModalPopupExtender>
    <asp:Panel ID="EmailNoticePanel" runat="server" Style="display: none" BackImageUrl="~/image/mainSkinBG.gif"
        CssClass="modalPopup" Width="600px">
        <!-- Header -->
        <div class="box-header" id="QuatationDragBar">
            <img src="image/stdBox_left_top.gif" alt="" />
            <h2>
                神州数码发货客户自取--通知</h2>
        </div>
        <div class="functionPanel">
            <table width="100%" cellpadding="0px" cellspacing="0px">
                <tr style="height: 25px; text-align: right;">
                    <td colspan="6">
                        <img src="image/operateicon/docdelete.gif" alt="" />
                        <asp:LinkButton ID="LinkButton2" runat="server">关闭</asp:LinkButton>
                        <img src="image/operateicon/check.gif" alt="" />
                        <asp:LinkButton ID="sendEmailLnkBtn" runat="server" OnClick="sendEmailLnkBtn_Click">发送</asp:LinkButton>
                    </td>
                </tr>
                <tr style="height: 25px;">
                    <td style="width: 10%">
                        收件人:
                    </td>
                    <td style="width: 20%">
                        <asp:Label ID="receiverLbl" runat="server"></asp:Label>
                    </td>
                    <td style="width: 10%">
                        联系人:
                    </td>
                    <td style="width: 20%">
                        <asp:Label ID="contactLbl" runat="server"></asp:Label>
                    </td>
                    <td style="width: 10%">
                        手机:
                    </td>
                    <td style="width: 20%">
                        <asp:Label ID="mobilePhoneLbl" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td colspan="6">
                        邮件通知:
                    </td>
                </tr>
                <tr>
                    <td colspan="6">
                        <asp:TextBox ID="BodyTxtBox" runat="server" Width="100%" Rows="7" TextMode="MultiLine"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                        短信通知:
                    </td>
                    <td colspan="4">
                        <asp:CheckBox ID="isSendSMSChkBox" runat="server" Text="如果需要发送短信请选中此框" ForeColor="Red" />
                    </td>
                </tr>
                <tr>
                    <td colspan="6">
                        <asp:TextBox ID="SMSTxtBox" runat="server" Width="100%" Rows="5" TextMode="MultiLine"></asp:TextBox>
                    </td>
                </tr>
            </table>
        </div>
        <div class="box-footer">
            <img alt="" src="image/stdBox_left_bottom.gif" />
            <p>
                &nbsp;</p>
        </div>
    </asp:Panel>
</asp:Content>
